function getType(obj) {
    const type = Object.prototype.toString.call(obj);
    return type.slice(8, -1).toLowerCase();
}
const type = getType([1])
console.log('type', type);